package main
import (
	"fmt";
	"unsafe" //unsafe.Sizeof(o) 输出o的类型
) 

func main(){
   
    var num1 float32=20.003;
	var num2 float64=20.0111123;
	fmt.Println("num1的长度是",unsafe.Sizeof(num1))
	fmt.Printf("num1的类型是 %T",num1)//%T类型
	fmt.Println()
	fmt.Println("num2的长度是",unsafe.Sizeof(num2))
	fmt.Printf("num2的类型是 %T",num2)
	fmt.Println()
	fmt.Printf("num1= %v,num2= %v",num1,num2)//%v拼接
}